package com.person.android.domain.email;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

import com.person.android.domain.IEmailService;
import com.person.android.formatts.R;

/**
 * @autor zhaokang.
 * @time on 2015/12/19.
 */
public class EmailService implements IEmailService {

    public void startEmailService(Context context, String content) {
        Intent data = new Intent(Intent.ACTION_SENDTO);
        data.setData(Uri.parse("mailto:lt_teams@sina.com"));
        data.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.feedback_email_title));
        data.putExtra(Intent.EXTRA_TEXT, content);
        context.startActivity(data);
    }
}
